home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 April
/
EnigmA AMIGA RUN 06 (1996)(G.R. Edizioni)(IT)[!][issue 1996-04][Skylink CD V].iso
/
earcd
/
utilgfx
/
nwpltt12.lha
/
NewPalette.doc
< prev
Wrap
Text File
|
1996-01-27
|
4KB
|
108 lines
Short: Replace palette in IFF ILBM with another
Uploader: troels@stud.cs.uit.no (Troels Walsted Hansen)
Author: troels@stud.cs.uit.no (Troels Walsted Hansen)
Type: util/cli
_ _ ____ _ _ _
| \ | | _____ _| _ \ __ _| | ___| |_| |_ ___
| \| |/ _ \ \ /\ / / |_) / _` | |/ _ \ __| __/ _ \
| |\ | __/\ V V /| __/ (_| | | __/ |_| || __/
|_| \_|\___| \_/\_/ |_| \__,_|_|\___|\__|\__\___| v1.2
Introduction
¯¯¯¯¯¯¯¯¯¯¯¯
I wrote this little utility because I couldn't find one on AmiNet that would
do exactly what I wanted it to. This program will basically read two IFF
ILBM files and write a new one containing the palette from one of the two
source files, and everything but the palette from the other.
I use it in conjunction with the ArcsPack series of backdrops found on
AmiNet. All the pictures in that series are drawn with a palette that is
arranged the same. The palette can be interchanged with any one of a number
of supplied palettes. This is a pain to do in an image manipulation package,
but with NewPalette it is a breeze. :-)
Features
¯¯¯¯¯¯¯¯
· Standard Amiga patternmatching makes it easy to change the palettes of
many pictures
· Random option picks a random palette from any number of palettes specified
with standard patterns. This allows endless variation of your backdrops. :-)
Requirements
¯¯¯¯¯¯¯¯¯¯¯¯
· AmigaOS 2.04 or higher
Usage
¯¯¯¯¯
NewPalette can only be used from the Shell. It takes a number of arguments,
out of which only two are mandatory. These are the first two, called FROM
and PALETTE. FROM can be a path and a filename or a path and a pattern. If
you don't specify RANDOM, then the PALETTE argument must be a filename. When
RANDOM is specified PALETTE can be a path and a pattern and the palette for
each picture will be picked from all files that match this pattern. DESTDIR
(may be abbreviated DEST) is an optional keyword and may specify a path where
to place the new pictures that NewPalette writes. EXTENSION (abbriviation
EXT) is also an optional keyword, this one tells NewPalette to add the
extension specified, to the filename of the new pictures.
The AmigaDOS template looks like this:
FROM/A,PALETTE/A,RANDOMS,DESTDIR=DEST/K,EXTENSION=EXT/K
Example usage
¯¯¯¯¯¯¯¯¯¯¯¯¯
NewPalette ram:pics/#? ram:palette.iff
· Give all pictures in ram:pics the palette contained in ram:palette.iff.
The new pictures are written over the old pictures.
NewPalette ram:pics/#? ram:palette.iff dest=ram: ext=.new
· As above except the new pictures are written to ram: with the original
filename plus the extension ".new".
NewPalette ram:pics/T#? ram:pals/#? random
· All pictures in ram:pics whose name begins with a T gets a random palette
picked from all the palettefiles found in ram:pals.
Author
¯¯¯¯¯¯
Troels Walsted Hansen <troels@stud.cs.uit.no>, Troels on IRC #Amiga/#Norge
Please report all bugs and/or enforcer hits you may find.
Legal issues
¯¯¯¯¯¯¯¯¯¯¯¯
I assume no responsibily for what this program does to you, your computer or
your files, use it at your own risk. NewPalette is copyright by Troels
Walsted Hansen, but you are allowed to distribute it freely. Please keep
this doc file along with the program!
Thanks to
¯¯¯¯¯¯¯¯¯
Bowie J. Poag (Arctangent)
· Your social intelligence is critically low, but your pictures are cool :^)
Christopher Naas
· For giving me the random routine used.
Bjørnar Henden
· For actually writing the random routine. :-)
Petter Nilsen, Kjell Irgens and Børge Nøst
· For answering various programming questions, thanks especially to Petter
for lending me his RKM books. :-)
History
¯¯¯¯¯¯¯
v1.0:
· First limited release
v1.1 (05.01.96):
· Patternmatching
· Extension adding
· Second limited release
v1.2 (27.01.96):
· Random palette picking
· First AmiNet release